Learning React Native by Bonnie Eisenman

Learning React Native by Bonnie Eisenman

Author:Bonnie Eisenman
Language: eng
Format: epub, mobi, pdf
Publisher: O'Reilly Media
Published: 2017-11-08T05:00:00+00:00


Example 7-1. Depends/package.json

{ "name": "Depends", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "react": "16.0.0-alpha.12", "react-native": "0.45.1" }, "devDependencies": { "babel-jest": "20.0.3", "babel-preset-react-native": "2.0.0", "jest": "20.0.4", "react-test-renderer": "16.0.0-alpha.12" }, "jest": { "preset": "react-native" } }

Note that for now, the only top-level dependencies in your project are react and react-native. Let’s add another dependency!

The lodash library provides a number of helpful utility functions, like a shuffle function for arrays. We install it with the --save flag to indicate that it should be added to our list of dependencies:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.